﻿@model Hrm.Core.Email

<div class="col-md-6">
    <div class="heading mt30 mb30">
        <h3>给我们发邮件</h3>
    </div>
    <form class="form-horizontal" action="@Url.Action("Contact")" method="post" role="form">
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.AntiForgeryToken()
        <div class="form-group">
            <div class="col-lg-12">
                <div class="row">
                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                        @Html.TextBoxFor(p => p.Name, new { @class = "form-control", placeholder = "名字" })
                        @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
                    </div>
                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                        @Html.TextBoxFor(p => p.EmailNum, new { @class = "form-control", placeholder = "邮件" })
                        @Html.ValidationMessageFor(model => model.EmailNum, "", new { @class = "text-danger" })
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <div class="row">
                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                        @Html.TextBoxFor(p => p.Phone, new { @class = "form-control", placeholder = "电话" })
                    </div>
                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                        @Html.TextBoxFor(p => p.Subject, new { @class = "form-control", placeholder = "主题" })
                        @Html.ValidationMessageFor(model => model.Subject, "", new { @class = "text-danger" })
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                @Html.TextAreaFor(p => p.Body, new { @class = "form-control", rows = "4", placeholder = "内容" })
                @Html.ValidationMessageFor(model => model.Body, "", new { @class = "text-danger" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <div class="row">
                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                        <button type="submit" class="btn btn-default btn-lg">发送邮件</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
